package edu.zut.bailan.student.service.impl;

import edu.zut.bailan.base.service.impl.GenericTreeManagerImpl;
import edu.zut.bailan.student.domain.StudentGroup;

import edu.zut.bailan.student.dao.StudentGroupDao;
import edu.zut.bailan.student.service.StudentGroupManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "studentGroupManager")
public class StudentGroupManagerImpl extends GenericTreeManagerImpl<StudentGroup, Long>
        implements StudentGroupManager {

    StudentGroupDao studentGroupDao;

    @Autowired
    public void setStudentGroupDao(StudentGroupDao studentGroupDao) {
        this.studentGroupDao = studentGroupDao;
        this.treeDao = this.studentGroupDao;
        this.dao = this.treeDao;
    }

}